package com.yiyuan.app.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.guaike.core.mybatis.entity.BasePO;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户包机记录表
 * </p>
 *
 * @author system
 * @since 2025-03-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("m_record_occupy")
public class MRecordOccupyPO extends BasePO {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * app用户id
     */
    private Long userId;
    /**
     * 房间ID
     */
    private Long roomId;
    /**
     * 机位编号
     */
    private String positionNo;
    /**
     * 分钟
     */
    private Integer duration;
    /**
     * 松果数量
     */
    private Integer pinecone;
    /**
     * 当前可游戏松果数量
     */
    private Integer currentPinecone;
    /**
     * 包机开始时间
     */
    private LocalDateTime startTime;
    /**
     * 结束结束时间
     */
    private LocalDateTime endTime;
    /**
     * 剩余多久时间，机器在维修时有
     */
    private Integer remainTime;
    /**
     * 上报维修时间
     */
    private LocalDateTime repairTime;
    /**
     * 是否结算
     */
    private Boolean isSettle;
    /**
     * 渠道编码
     */
    private String tenantId;
    /**
     * 逻辑删除（非0:已删除, 0:未删除）
     */
    @TableLogic(value = "0", delval = "now()")
    private Long deleted;



}
